﻿using System.Windows;

namespace AlbumDesign
{
    /// <summary>
    /// AlbumGuideWindow.xaml 的交互逻辑
    /// </summary>
    public partial class AlbumGuideWindow : Window
    {
        public AlbumGuideWindow(Album album = null)
        {
            InitializeComponent();
            A = new Album();
            if (album != null)
            {
                A.Height = album.Height;
                A.Width = album.Width;
                A.DesignPageCount = album.DesignPageCount;
            }
            DataContext = A;
        }

        public Album A { get; set; }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
            Close();
        }
    }
}
